package com.puff.web.mvc;

import java.util.HashMap;
import java.util.Map;

import com.puff.framework.asm.reflect.MethodAccess;

public final class ExecutorMethod {

	private final static Map<String, MethodAccess> map = new HashMap<String, MethodAccess>();

	public static MethodAccess regViewAccess(Class<?> clazz) {
		MethodAccess access = map.get(clazz.getName());
		if (access == null) {
			access = MethodAccess.get(clazz);
			map.put(clazz.getName(), access);
		}
		return access;
	}

	public static void clear() {
		map.clear();
	}

}
